TRANSLATIONS=marave_es.ts 
TRANSLATED=marave_es.qm

all: icons_rc.py Ui_searchreplacewidget.py Ui_searchwidget.py \
     Ui_prefs.py update_trans $(TRANSLATED)

icons_rc.py: icons.qrc
	pyrcc4 icons.qrc -o icons_rc.py

Ui_searchreplacewidget.py: searchreplwidget.ui
	pyuic4 searchreplwidget.ui -o Ui_searchreplacewidget.py -x

Ui_searchwidget.py: searchwidget.ui
	pyuic4 searchwidget.ui -o Ui_searchwidget.py -x

Ui_prefs.py: prefs.ui
	pyuic4 prefs.ui -o Ui_prefs.py -x

marave_es.qm: marave_es.ts
	lrelease marave_es.ts -compress -qm marave_es.qm
	
update_trans:
	pylupdate4 *py -noobsolete -ts $(TRANSLATIONS)
